Skip to content

fix: controller filter attribute docs and improve invalid attribute logging#10040

Merged
michalsn merged 1 commit intocodeigniter4:developfrom
michalsn:fix/controller-attributes
Mar 15, 2026
Merged

fix: controller filter attribute docs and improve invalid attribute logging#10040
michalsn merged 1 commit intocodeigniter4:developfrom
michalsn:fix/controller-attributes

Conversation

@michalsn
Copy link
Member

Description
This PR fixes the docs to show the correct repeatable Filter syntax instead of the unsupported array form. Also improves the error message logged when a controller attribute fails to instantiate, and adds a test for that failure path.

Fixes #10039

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn merged commit fe768c9 into codeigniter4:develop Mar 15, 2026
55 checks passed
@michalsn
Copy link
Member Author

Thanks @paulbalandan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Controller Attributes - multi filters as array docs mismatch

2 participants